/*
 * Copyright 2015-2016 Red Hat, Inc. and/or its affiliates
 * and other contributors as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "../../../libs/patternfly/less/lib/bootstrap/variables.less";
@import "../../../libs/patternfly/less/lib/bootstrap/mixins.less";
@import "../../../libs/patternfly/less/variables.less";

// Variables

@danger-bg: rgba(204, 0, 0, 0.07);

/*------------------------------------*\
    STRUCTURAL STYLES
\*------------------------------------*/

body {
  background-color: #f5f5f5;
  line-height: 1.4;
  padding-bottom: @grid-gutter-width/2;
}

.toolbar-pf-results {
  border: 0;
}

.container {
  padding: 0 @grid-gutter-width/4;
}

.hk-align-center {
  margin: 0 auto;
  float: none;
}

.container {
  @media (min-width: 1201px) and (max-width: 1440px) {
    width: calc(~"100% - 40px");
  }

  @media (min-width: 1441px) {
    width: 1400px;
  }
}

/*------------------------------------*\
    SCREEN COMPONENTS
\*------------------------------------*/

// Various Components

h1 {
  margin-bottom: @grid-gutter-width/2;
  margin-top: @grid-gutter-width/4*3;
}

h2 {
  font-size: ceil(@font-size-base * 1.5);
  font-weight: 100;
  margin-bottom: @grid-gutter-width/2;

  + h3 {
    margin-top: 0;
  }

  &.no-margin-top {
    margin-top: 0;
  }
}

h3 {
  color: @gray;
  font-size: ceil(@font-size-base + 1);
  font-weight: bold;
  margin-bottom: @grid-gutter-width/8*3;
  margin-top: @grid-gutter-width/4;

  + .hk-update {
    margin-top: @grid-gutter-width/4;
  }

  + .pull-right .hk-update {
    display: inline-block;
    margin-right: @grid-gutter-width/4;
    margin-top: @grid-gutter-width/4;
  }
}

h1, h2 {
  font-weight: 100;
}

.hk-spinner-legend-below {
  color: @gray-light;
  font-size: ceil(@font-size-base + 2);
  margin-top: @grid-gutter-width/8;
}

.hk-input-text {
  line-height: 1.66666667;
}

ul.hk-input-text {
  line-height: 1.4;
  padding-top: 2px;

  li:not(:last-child) {
    padding-bottom: 5px;
  }
}

.dl-horizontal {

  dt,
  dd {
    line-height: 1.4;
  }

  dd .label {
    display: inline-block;
    padding: 5px 6px;
    margin-bottom: 3px;
  }

  dt {
    @media (min-width: @screen-sm-min) {
      text-align: left;
      width: 60px;
    }
  }

  dd {
    @media (min-width: @screen-sm-min) {
      margin-left: 80px;
    }

    &:not(:last-child) {
      margin-bottom: 10px;
    }
  }

  .bootstrap-select.btn-group {
    margin-bottom: 0;
  }
}

.info-top {
  font-size: ceil(@font-size-base + 1);
}

a:hover {
  cursor: pointer;
}

.hk-spinner-container-alone {
  margin-top: @grid-gutter-width*5.5;
}

.btn + .btn {
  margin-left: @grid-gutter-width/8;
}

.breadcrumb {
  margin-bottom: 0;
  padding-top: 5px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
}

// Help components

.hk-display-table {
  display: table;
  width: 100%;

  > div {
    display: table-cell;
  }
}

.hk-bold {
  font-weight: bold;
}

.hk-invisible {
  visibility: hidden;
}

.hk-word-break {
  word-break: break-all;
}

.hk-warning,
.fa.hk-warning {
  color: @brand-warning;
}

.hk-success {
  color: @brand-success;
}

.hk-bg-danger {
  background-color: @brand-danger;
}

.hk-cursor-pointer {
  cursor: pointer;
}

.hk-inline-block {
  display: inline-block;
}

// Alerts

.alert-success,
.alert-warning,
.alert-danger {
  background-color: transparent;
}

// Animations / Transitions

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hk-fade-in {
  opacity: 0;
  animation: fadeIn ease-in 1;
  -webkit-animation: fadeIn ease 1;
  -moz-animation: fadeIn ease-in 1;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  animation-duration: 0.5s;
  -webkit-animation-duration: 0.5s;
  -moz-animation-duration: 0.5s;
}

.btn-primary {
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

// Buttons

.btn-link, a {

  .fa {
    color: @link-color;
    vertical-align: text-bottom;
  }

  &:hover .fa {
    color: @link-hover-color;
  }
}

.btn-link {
  border: none;
  padding: 0;
}

.btn-icon .fa {
  display: block;
}

.hk-btn-icon {

  .fa {
    color: @brand-primary;
    margin-right: 0;
  }

  &:hover {
    text-decoration: none;
  }
}

.btn-default .fa {
  color: @gray;
  margin-right: 0;
  vertical-align: middle;
}

.dropdown.clean {
  .btn-default {
    background-color: transparent;
    background-image: none;
    border-color: transparent;
    box-shadow: none;
  }

  .btn-default:hover,
  .btn-default:focus,
  .btn-default:active,
  .btn-default.active,
  &.open .dropdown-toggle.btn-default {
    background-color: #eeeeee;
    border-color: #b7b7b7;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1)
  }

  .fa {
    margin-right: 5px;
  }
}

// Cards

.row-cards-pf {
  clear: both;
}

.card-pf-title {
  line-height: 1.3;
}

.card-pf-body {
  margin-bottom: 0;
}

.row-cards-pf + .container-cards-pf {
  margin-top: 0;
}

.card-pf-aggregate-status-mini .card-pf-title .card-pf-aggregate-status-count {
  font-size: 20px;
}

.hk-h2-offset {
  @media (min-width: @screen-lg-min) {
    margin-top: 39px;
  }
}

.hk-cards-offset {
  margin-top: 30px;
}

.hk-definitions-link {
  font-size: @font-size-base;
}

.hk-card-interval { // provisional until pf style
  font-size: 10px;
  margin-top: 10px;
}

.card-pf-utilization-card-details-description { // provisional until pf style
  margin-top: 10px;
}

.card-pf-heading .card-pf-title .label {
  margin-left: 5px;
}

.hk-card-border {
  border: 1px solid @table-border-color;
}

// Cards Flexbox

.hk-row-cards-flexbox {
  display: flex;
  flex-wrap: wrap;

  &:before,
  &:after {
    display: flex;
  }

  [class*="col-"] {
    display: flex;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .card-pf {
    width: 100%;
  }
}

// Charts and Legends

.hk-graph {
  clear: left;
  padding: @grid-gutter-width/2;
  text-align: center;

  h2, // to be removed when updated
  h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 0;

    span {
      font-size: @font-size-base;
      font-weight: normal;
    }
  }

  .form-control {
    border: none;
    box-shadow: none;
  }

  .hk-graph-container {
    margin: 0 auto;

    &.hk-graph-availability svg { /* top 40px, bottom 30px, align center */
      margin-bottom: -18px;
      margin-left: -24px;
      margin-top: -3px;
    }

    &.hk-graph-metrics {

      svg {
        margin-bottom: -13px;
        margin-left: -5px;
        margin-top: -14px;
      }
    }

    &.hk-graph-jvm {

      svg {
        margin-bottom: -13px;
        margin-left: -5px;
        margin-top: -14px;
      }
    }
  }

  .hk-spinner-container {
    margin-bottom: @grid-gutter-width/4*5;
    margin-top: @grid-gutter-width*1.5;
  }

  .hk-legend {
    font-size: ceil(@font-size-base - 1);
    margin-bottom: 10px;
    margin-left: 12%;
    margin-top: 10px;

    &.hk-legend-inline {
      margin-top: 24px;

      > div {
        padding-left: 0;
      }
    }

    span {
      margin-right: @grid-gutter-width/2;
    }

    .hk-blue {
      color: #1884c7;
    }

    .hk-red {
      color: #e12226;
    }

    .hk-orange {
      color: #f57f20;
    }

    .hk-gray {
      color: #515252;
    }

    .hk-green {
      color: #49a547;
    }

    .hk-purple {
      color: #95489c;
    }

    .hk-yellow {
      color: #d5d026;
    }

    .fa-circle {
      font-size: ceil(@font-size-base * 0.75);
    }

    .hk-legend-square {
      display: inline-block;
      margin-right: 5px;
      height: 10px;
      width: 10px;

      &.hk-red {
        background-color: #e12226;
      }

      &.hk-red-light {
        background-color: #feedee;
      }

      &.hk-gray-light {
        background-color: #b5b5b5;
      }

      &.hk-green {
        background-color: #49a547;
      }
    }

    &.row {

      .col-md-3,
      .col-lg-2 {
        padding-right: 0;
      }

      h4 {
        font-size: @font-size-base - 1;
        font-weight: bold;

        img {
          margin-left: 5px;
        }
      }

      input[type=checkbox] {
        margin-right: 4px;
      }

      .margin-heading {
        margin-top: @grid-gutter-width/2;
        padding-top: ceil(@font-size-base * 1.1);
      }
    }

    &.hk-legend-inline {

      .hk-graphselector {
        display: inline-block;
        margin-right: 30px;

        label span {
          margin-right: 0;
        }
      }
    }

    .hk-graphselector {

      label {
        display: inline-block;
        cursor: pointer;
        position: relative;
        padding-left: 17px;

        &:before {
          border: 1px solid #ccc;
          border-radius: 1px;
          bottom: 1px;
          box-shadow: inset 0px 0 1px rgba(0, 0, 0, 0.1);
          content: "";
          display: inline-block;
          left: 0;
          height: 12px;
          position: absolute;
          width: 12px;
        }

        span {
          color: @gray-dark;
          font-weight: 400;
        }
      }

      &:hover,
      &:focus {

        label:before {
          border-color: @gray-light;
        }
      }

      input[type=checkbox] {
        display: none;

        &:checked + label:before {
          font-size: 8px;
          line-height: 10px;
          text-align: center;
          text-indent: 1px;
        }
      }

      &.hk-blue input[type=checkbox]:checked + label:before {
        background-color: #1884c7;
      }

      &.hk-red input[type=checkbox]:checked + label:before {
        background-color: #e12226;
      }

      &.hk-orange input[type=checkbox]:checked + label:before {
        background-color: #f57f20;
      }

      &.hk-gray input[type=checkbox]:checked + label:before {
        background-color: #515252;
      }

      &.hk-green input[type=checkbox]:checked + label:before {
        background-color: #49a547;
      }

      &.hk-purple input[type=checkbox]:checked + label:before {
        background-color: #95489c;
      }

      &.hk-yellow input[type=checkbox]:checked + label:before {
        background-color: #d5d026;
      }
    }
  }

  > img {
    margin-top: @grid-gutter-width/4;
    width: 100%;
  }
}

.c3-chart {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;

  .c3-chart-arcs-title {
    dominant-baseline: inherit;
  }
}

.hk-donut-chart {
  .c3-chart-arcs-title {
    dominant-baseline: central;
    font-size: 1.4em;
  }
}

.c3-danger {
  path.sparklineArea {
    stroke: @brand-danger;
    fill: @brand-danger;
    fill-opacity: .4;
  }
}

// Control Actions Bar

.hk-control-actions-bar {

  margin-bottom: @grid-gutter-width/2;

  .form-control {
    display: inline-block;
    width: 275px;
  }

  .hk-container-separator {
    border-right: 1px solid @table-border-color;
    float: left;
    padding-right: 15px;
    margin-right: 15px;
  }

  label {
    margin-right: 10px;
  }

  .input-group {
    float: left;

    &:not(:last-child) {
      margin-right: 15px;
    }
  }

  .bootstrap-select:not([class*="span"]):not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
    margin-bottom: 0;
    width: auto;
  }

  .btn + .btn {
    margin-left: @grid-gutter-width/4;
  }

  + .hk-update {
    margin-top: 5px;
  }

  &.hk-separator {
    border-top: 1px solid @table-border-color;
    padding-top: 15px;
  }
}

.hk-update {
  &.hk-in-alert {
    margin-bottom: @grid-gutter-width/2;
    margin-top: @grid-gutter-width/8;
  }
}

.simple-filter .form-group {
  margin-bottom: 0;
  margin-top: -9px;
}

// Forms

.input-group-lg {

  .input-group-btn {
    vertical-align: top;

    .btn {
      line-height: 1.2857142857;
    }
  }
}

.label {
  font-size: ceil(@font-size-base - 2);
}

.hk-label-small {
  font-size: ceil(@font-size-base * 0.75);
  font-weight: bold;
  padding: 2px 4px;
}

.nav-tabs .label {
  margin-left: 10px;
}

.hk-alert-settings .form-horizontal {
  margin-top: @grid-gutter-width/2;
}

.form-horizontal {

  fieldset {
    margin-bottom: 5px;
    position: relative;
  }

  legend {
    border-bottom: none;
    border-top: 1px solid #e5e5e5;
    font-size: ceil(@font-size-base * 1.25);
    padding-top: @grid-gutter-width/4;

    &.hk-no-border {
      border: none;
    }
  }

  .onffswitch-form-group {
    margin-bottom: 0;
    position: relative;

    .control-label {
      display: none;
    }
  }

  .onoffswitch-container {
    position: absolute;
    right: 20px;
    top: -52px;
    width: 62px;
  }

  label {
    padding-right: 0;
  }

  .input-group {
    float: left;

    &.hk-input-small {
      max-width: 100px;
    }
  }

  .hk-input-small {
    max-width: 75px;
  }

  .help-block {
    margin-top: @grid-gutter-width/8;
  }

  .inline-row {

    > div,
    > span {
      float: left;
      margin-right: @grid-gutter-width/4;
    }

    .between-inputs {
      line-height: 26px;
    }
  }

  .input-addon {
    width: 175px;
  }

  .input-select {

    width: 175px;

    input.form-control {
      width: 75px;
    }

    .bootstrap-select {
      float: left;
      width: 100px;
    }
  }

  .indented {
    margin-left: 20px;
    margin-top: 5px;
  }

  p + .form-group {
    margin-top: @grid-gutter-width/2
  }
}

p + .form-horizontal {
  margin-top: 20px;
}

.hk-required-info {
  color: @gray-light;
  text-align: right;
}

.hk-required {
  color: @brand-danger;
}

.hk-form-buttons .btn {
  margin-left: @grid-gutter-width/8;
}

.hk-form-actions-separator {
  border-top: 1px solid #e5e5e5;
  padding-top: 15px;
  text-align: right;
}

.hk-selected-container {
  border: 1px solid @list-group-border;
  max-height: 64px;
  overflow-y: scroll;
  padding: 0 5px 5px 5px;
}

.form-group ul {
  margin-bottom: 0;
}

.hk-control-actions-bar .input-group {
  width: 300px;
}

.hk-label-inputs {
  padding-left: 2em;
  padding-right: 2em;

  .combobox-container {
    float: left;
    width: calc(~"50% - 25px");
  }

  .hk-label-semicolon {
    float: left;
    padding: 0 6px;
  }

  .btn {
    margin-left: 1em;
  }
}

.hk-form-buttons-offset {
  width: calc(~"100% - 81px");
}

.hk-input-bottom-info {
  margin-top: @grid-gutter-width/8;
}


// Icons

.fa .meaning {
  display: none;
}

.fa {
  color: @gray-light;
  font-size: ceil(@font-size-base * 1.33333333333333);
  margin-right: 5px;
}

.fa-flag,
a .fa-flag,
a:hover .fa-flag,
.card-pf-aggregate-status .card-pf-title .fa-flag {
  color: @brand-danger;

  &.gray {
    color: @gray-light;
  }
}

.fa-arrow-up,
a .fa-arrow-up,
a:hover .fa-arrow-up,
.card-pf-aggregate-status .card-pf-title .fa-arrow-up {
  color: @brand-success;
}

.fa-repeat,
a .fa-repeat,
a:hover .fa-repeat,
.card-pf-aggregate-status .card-pf-title .fa-repeat {
  color: @brand-success;
}

.fa-arrow-down,
a .fa-arrow-down,
a:hover .fa-arrow-down {
  color: @brand-danger;
}

.fa-chain-broken,
a .fa-chain-broken,
a:hover .fa-chain-broken {
  color: @gray-light;
}

.fa-spinner,
a .fa-spinner,
a:hover .fa-spinner,
.card-pf-aggregate-status .card-pf-title .fa-spinner {
  color: @gray-light;
}

.fa-chain-broken,
a .fa-chain-broken,
a:hover .fa-chain-broken,
.card-pf-aggregate-status .card-pf-title .fa-chain-broken {
  color: @gray-light;
}

.fa-times-circle-o,
a .fa-times-circle-o,
a:hover .fa-times-circle-o,
.card-pf-aggregate-status .card-pf-title .fa-times-circle-o {
  color: @brand-danger;
}

&.fa-check-circle-o {
  color: @brand-success;
}

&.fa-times-circle-o {
  color: @brand-danger;
}

.btn-danger .fa {
  color: white;
}

[class^="pficon-"],
[class*=" pficon-"] {
  font-size: 14px;
}

.btn-primary .fa {
  color: white;
}

// Message center

.hk-message-center {

  .hk-message-title {
    color: @navbar-pf-color;
    margin-right: @grid-gutter-width/3;
    text-decoration: none;
    cursor: pointer;

    i.fa {
      color: inherit;
      margin-right: 7px;
      margin-top: 11px;
    }
  }

  .dropdown-menu {
    margin-top: 10px;
    margin-right: 5px;

    &::after {
      position: absolute;
      top: -6px;
      right: 40px;
      display: inline-block;
      border-right: 6px solid transparent;
      border-bottom: 6px solid white;
      border-left: 6px solid transparent;
      content: '';
    }
  }

  #toast-container {
    position: inherit;
    margin-right: 5px;
    margin-left: 5px;
  }
  .hk-last-item {

    .hk-show-more {
      text-align: center;
      color: #0099d3;
    }

    .hk-no-messages {
      width: @popover-max-width;
      margin-top: @grid-gutter-width/3;
      margin-bottom: @grid-gutter-width/3;
      text-align: center;
    }
  }
}

// Modal Boxes

.modal section {
  margin-bottom: 0;
}

.modal-body {

  .nav-tabs {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;

    > li.active > a {
      background-color: white;
    }
  }

  .hk-tab-content {
    border-bottom: 1px solid #e5e5e5;
    margin-left: -15px;
    margin-right: -15px;
    padding: 1.5em 1.5em 0;
  }

  fieldset p {
    margin-top: -10px;
  }

  .input-group-btn {
    width: auto;
  }

  .form-horizontal {
    margin-top: @grid-gutter-width/2;

    &:first-child {
      margin-top: @grid-gutter-width/4;
    }

    fieldset:first-child legend {
      border-top: none;
      padding-top: 0;
    }
  }

  p + .form-horizontal {
    margin-top: @grid-gutter-width/2;
  }

  .form-horizontal {

    .input-detail {
      color: @gray-light;
      line-height: 1.66666667;
      margin-left: @grid-gutter-width/4;
    }

    .inline-row {

      > div,
      > span {
        float: left;
        margin-right: @grid-gutter-width/4;
      }

      .between-inputs {
        line-height: 26px;
      }
    }

    .input-addon {
      width: 180px;
    }

    .input-select {

      width: 180px;

      input.form-control {
        width: 80px;
      }

      .bootstrap-select {
        float: left;
        width: 100px;
      }
    }

    .indented {
      margin-left: 20px;
      margin-top: 5px;
    }
  }

  .pull-right-switch {
    position: absolute;
    right: 0;
    top: -3.5em;
  }

  p.second-level {

    strong {
      font-weight: 600;
    }
  }

  p.primary-message {
    font-size: ceil(@font-size-base + 1);
    font-weight: bold;
  }
}

#modal-jbdc-drivers .btn-table-list-container {
  margin-top: @grid-gutter-width/2;
}

#modal-jbdc-drivers .btn-primary + .hk-table-list {
  margin-top: @grid-gutter-width/4;
}

.hk-btn-distant {
  margin-right: @grid-gutter-width/2;
}

.modal-backdrop {
  width: 100% !important;
}

.modal-footer {
  margin-top: 0;
  padding-top: 0;
}

.hk-form-read-only {
  .hk-editable {
    display: none;
  }
}

.hk-form-editable {
  .hk-read-only {
    display: none;
  }
}

.modal select[multiple] {
  height: 180px;
}

// Lists

.hk-comment-list {
  padding-left: 0;

  li {
    border-top: 1px solid @list-group-border;
    list-style: none;
    padding: @grid-gutter-width/4;
    padding-bottom: 0;

    .pficon {
      color: @gray-light;
      font-size: ceil(@font-size-base + 2);
      padding-right: 5px;
    }

    .hk-author {
      font-weight: bold;
      padding-right: 5px;
    }

    .hk-date {
      color: @gray-light;
    }

    p {
      padding: 10px 0;
    }
  }
}

// On off switch

.form-group .bootstrap-switch {
  float: right;
}

.onoffswitch {
  -moz-user-select: none;
  height: 26px;
  position: relative;
  width: 62px;

  &:focus {
    box-shadow: 0 0 8px rgba(102, 175, 73, 0.6);
  }

  .onoffswitch-checkbox {
    display: none;
  }

  .onoffswitch-label {
    border: 1px solid #bbb;
    border-radius: 2px;
    cursor: pointer;
    display: block;
    overflow: hidden;
    width: 62px;
  }

  .onoffswitch-inner {
    display: block;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
    width: 200%;

    > span {
      -moz-box-sizing: border-box;
      color: white;
      float: left;
      font-weight: bold;
      height: 24px;
      line-height: 24px;
      padding: 0;
      width: 50%;
    }

    .onoffswitch-active {
      background: @brand-primary;
      color: #FFFFFF;
      padding-left: 10px;
    }

    .onoffswitch-inactive {
      background: linear-gradient(#fefefe, #e8e8e8) repeat scroll 0 0 transparent;
      color: #4d5258;
      padding-right: 10px;
      text-align: right;
    }
  }

  .onoffswitch-switch {
    background-image: linear-gradient(top, #fafafa 0%, #ededed 100%);
    background-image: -o-linear-gradient(top, #fafafa 0%, #ededed 100%);
    background-image: -moz-linear-gradient(top, #fafafa 0%, #ededed 100%);
    background-image: -webkit-linear-gradient(top, #fafafa 0%, #ededed 100%);
    background-image: -ms-linear-gradient(top, #fafafa 0%, #ededed 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fafafa), color-stop(1, 0, #ededed));
    border: 1px solid #aaa;
    border-radius: 2px;
    bottom: 0;
    margin: 0;
    position: absolute;
    right: 39px;
    top: 0;
    transition: all 0.3s ease-in 0s;
    -webkit-transition: all 0.3s ease-in 0s;
    width: 23px;
  }

  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
  }

  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0;
  }
}

.onoffswitch-checkbox:disabled + .onoffswitch-label .onoffswitch-inner .onoffswitch-active,
.onoffswitch-checkbox:disabled + .onoffswitch-label .onoffswitch-inner .onoffswitch-inactive {
  background-image: none;
  background-color: #e5e5e5;
  color: #9d9fa1;
}

// Panels

.row-panels { // provisional until everything is updated to cards
  margin-left: -10px;
  margin-right: -10px;

  .panel {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row-cards-pf {
    margin-left: -20px;
    margin-right: -20px;
  }
}

.panel {

  border: none;

  .panel-heading {
    background-color: transparent;

    .hk-heading {
      color: inherit;
      font-weight: 600;
    }

    a.hk-heading {
      color: @gray-dark;

      .fa {
        vertical-align: middle;
      }
    }

    .hk-resource-name {
      font-size: ceil(@font-size-base * 1.5);
    }

    h2 {
      line-height: 1.3;
      margin: @grid-gutter-width/8 0;

      + .label {
        margin-top: 8px;
      }
    }

    .hk-time-range {
      line-height: 23px;
      margin-top: 5px;
    }

    .dropdown {
      margin-top: -5px;

      .btn:hover,
      .btn:focus {
        color: @link-hover-color;
      }

      &.pull-right {
        margin-right: -10px;
      }

      &.hk-action-buttons {
        margin-top: @padding-base-vertical;
      }
    }
  }

  .panel-body {

    .hk-box-v-item {
      margin-left: -15px;
      margin-right: -15px;
    }

    .dl-horizontal {
      margin-bottom: 0;
    }

    .label {
      margin-bottom: 5px;
      margin-right: 5px;
    }
  }

  &.alert-danger {
    background-color: @danger-bg;
  }

  &.alert {
    display: table;
    font-size: ceil(@font-size-base + 1);
    margin-bottom: @grid-gutter-width/8*3;
    padding: @grid-gutter-width/3 @grid-gutter-width/2;
    width: 100%;

    &:last-child {
      margin-bottom: 20px;
    }

    > div {
      display: inline-block;
      vertical-align: middle;
    }

    .hk-alert-icon {
      text-align: center;
      margin-right: 15px;
      width: 28px;

      .fa {
        font-size: ceil(@font-size-base * 2);
      }
    }

    .hk-date {
      margin-right: 20px;
      min-width: 120px;
    }

    .alert-resolver {
      cursor: pointer;
      display: table-cell;
      padding-left: 1em;
      width: 16px;

      .fa {
        margin-right: 0;
        width: 16px;
      }

      .fa-check-square-o {

        &:hover {
          color: @link-hover-color;
        }
      }
    }
  }
}

.hk-info-top + .hk-panel-table-list {
  margin-top: @grid-gutter-width/4;
}

.hk-alert-center-detail .hk-panel-table-list {
  padding: @grid-gutter-width/2;
}

.blank-slate-pf {
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid transparent;
  border-radius: 1px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);

  .fa {
    color: inherit;
    font-size: inherit;
  }

  p {
    font-size: ceil(@font-size-base + 1);
  }
}

.container > .blank-slate-pf:first-child {
  margin-top: @grid-gutter-width/2;
}

.hk-box-v-item {
  border-top: 1px solid @list-group-border;
  margin-left: -20px;
  margin-right: -20px;
  padding: 15px;

  &:first-child {
    border-top: none;
    padding-top: 0;
  }

  &:last-child {
    padding-bottom: 0;
  }

  &.hk-action {

    .hk-icon-container .fa {
      color: @link-color;
      font-size: ceil(@font-size-base * 1.5);
      margin-left: @grid-gutter-width/4;
      margin-right: @grid-gutter-width/4;
    }

    .hk-heading {
      font-size: ceil(@font-size-base * 1.25);
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 3px;

      a:not(:hover) {
        color: @gray-dark;
      }
    }
  }

  .hk-icon-container {
    text-align: center;
    width: 24px;

    &:first-child {
      padding-right: 5px;
    }

    &:last-child {
      padding-left: 5px;
      vertical-align: middle;
    }
  }

  .hk-info-heading {
    margin-bottom: 5px;

    &:not(.hk-acknowledged) {
      font-weight: bold;
    }
  }

  .hk-info-info {
    margin-bottom: 5px;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

// Right Sidebar

.col-lg-3 .hk-info-top {
  margin-top: 10px;
  margin-bottom: 15px;
}

// Summary

.hk-summary {
  clear: both;

  .row {
    margin-left: 0;
    margin-right: 0;
  }
}

.hk-data {
  font-weight: 100;
}

.hk-summary-item {
  border-right: 1px solid @table-border-color;
  color: @gray;
  display: inline-block;
  padding: @grid-gutter-width/2 @grid-gutter-width/4;
  text-align: center;

  &:last-child {
    border-right: none;
  }

  &.text-left {
    padding-left: @grid-gutter-width/4*5;
  }

  .hk-data {
    display: block;
    line-height: 1.3;
    font-size: ceil(@font-size-base * 1.75);

    span {
      font-size: 0.75em;
    }

    .fa {
      margin-left: 2px;
      vertical-align: inherit;
    }

    &.spinner {
      margin-bottom: 7px;
      margin-top: 5px;
    }
  }

  .hk-item {
    display: block;
    margin-top: 5px;
  }

  a,
  a .hk-item {
    color: @gray-dark;
  }

  a:hover,
  a:hover .hk-item,
  a:focus,
  a:focus .hk-item {
    color: @link-hover-color;
    text-decoration: none;
  }

  .fa {
    font-size: inherit;
  }
}

// Tables

.table > thead > tr > th,
.table > tbody > tr > td {
  padding: 7px 10px 8px;
}

.table > tbody > tr > td > a:hover {
  text-decoration: underline;
}

.table > tbody > tr.hk-alert-open td:nth-child(2) {
  font-weight: bold;
}

.table-striped > tbody {

  background-color: white;

  > tr:nth-child(odd) > td {
    background-color: white;

    &.success {
      background-color: #dff0d8;
    }

    &.danger {
      background-color: rgba(204, 0, 0, 0.07);
    }

    &.warning {
      background-color: #fcf8e3;
    }
  }

  > tr.open:nth-child(odd) > td {
    background-color: transparent;
  }
}

.hk-table-select > tbody > tr:hover > td {
  background-color: #d4edfa;
  cursor: pointer;

  &.success,
  &.danger,
  &.warning {
    background-color: #d4edfa;
  }
}

.hk-table-select > tbody > tr.hk-selected > td {
  background-color: @brand-primary;
  color: white;

  &.success,
  &.danger,
  &.warning {
    background-color: @brand-primary;
  }

  .fa {
    color: white;
  }
}

.table {
  .label-alert {
    margin-top: 4px;
  }

  a .label-alert {
    padding: 0 4px;
  }

  td.state {
    .fa {
      font-size: 20px;
      text-align: center;
      width: 21px;

      &.fa-square {
        font-size: 18px;
      }
    }

    p {
      margin-bottom: 0;
    }

    .spinner.spinner-inline {
      margin-left: 1px;
      margin-right: 7px;
      vertical-align: top;
    }

    span.fetching {
      color: @gray-light;
    }
  }

  td.state {
    min-width: 105px;
  }

  td.actions {

    min-width: 95px;

    .dropdown {
      position: absolute;
      margin-top: -2px;
    }
  }
}

.dataTables_header {
  padding: 7px 5px 9px 5px;
}

.actions-table,
.hk-actions-table {
  position: absolute;
  z-index: 10;
  right: 5px;

  > .btn:first-child {
    margin-right: 8px;
  }
}

.actions-table {
  top: 46px;

  .add,
  .dropdown {
    display: inline-block;
  }
}

.hk-table-container {
  background-color: white;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  position: relative;

  .hk-actions-table {
    top: 6px;
  }

  .dataTables_wrapper {
    margin: 0;
  }
}

.hk-table-alerts,
.hk-table-clean {

  &.hk-alerts-contextual {
    border-left: none;
    border-right: none;
    border: none;
    font-size: ceil(@font-size-base + 1);
  }

  &.table-bordered > thead > tr > th,
  &.table-bordered > tbody > tr > th,
  &.table-bordered > tfoot > tr > th,
  &.table-bordered > thead > tr > td,
  &.table-bordered > tbody > tr > td,
  &.table-bordered > tfoot > tr > td {
    border-left: none;
    border-right: none;
  }

  &.hk-alerts-contextual > tbody > tr {
    > td {
      border-bottom: none;
      border-top: none;
    }

    &:last-child > td {
      border-top: 1px solid @table-border-color;
    }
  }

  &.table > thead > tr > th,
  &.table > tbody > tr > td {
    padding: @grid-gutter-width/3 @grid-gutter-width/4;
  }

  .fa-flag {
    font-size: 20px;
  }

  tr.hk-alert-resolved .fa-flag {
    color: @gray-light;
  }

  .hk-alert-open .fa-flag {
    color: @brand-danger;
  }
}

.hk-table-list {
  border: 1px solid @table-border-color;

  &.table > tbody > tr {
    > td {
      border-top-color: @list-group-border;
    }

    &:first-child > td {
      border: none;
    }
  }
}

td[class*="hk-actions-"] {
  text-align: center;
}

td.hk-actions-one {
  width: 30px;
}

td.hk-actions-two {
  width: 100px;
}

.hk-table-detailed tr td:hover {
  cursor: pointer;
}

.hk-td-radio,
.hk-td-checkbox {
  width: 20px;
}

.hk-actions-table-search {
  position: absolute;
  top: 0;
  z-index: 10;
  left: 177px
}

td .fa-comment-o {
  margin-left: @grid-gutter-width/8;
}

.hk-table-overflow-y {
  border-bottom: 1px solid @table-border-color;
  border-top: 1px solid @table-border-color;
  max-height: 126px;
  overflow-y: scroll;

  .table {
    margin-bottom: -1px;
    margin-top: -1px;
  }
}

th .fa {
  color: @gray-dark;
}

// Tiles (copied from Angular Patternfly)

.tiles-view-pf {
  overflow: auto;
  padding-top: 20px;
  padding-left: 2px;
}

.tiles-view-pf .tile {
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .175);
  background: #fff;
  border-top: 2px solid transparent;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.175);
  display: block;
  float: left;
  //   height: 290px;
  margin-right: 20px;
  margin-bottom: 20px;
  padding: 10px;
  position: relative;
  text-align: center;
  //   width: 260px;
}

.tiles-view-pf .tile-check-box {
  left: 10px;
  position: absolute;
  top: 8px;
  width: 20px;
  z-index: 3;
}

.tiles-view-pf .tile-content {
  height: 100%;
  margin: 2px 0 10px 0;
  overflow: hidden;
  width: 100%;
}

.tiles-view-pf .tile-title {
  color: #1186C1;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  margin-top: 0px;
}

.tiles-view-pf .tile.active,
.tiles-view-pf .tile.active:hover,
.tiles-view-pf .tile.active:focus {
  border: solid 3px #39a5dc;
}

.tiles-view-pf .tile:hover,
.tiles-view-pf .tile:focus {
  -webkit-box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.24);
  box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.24);
  border: 1px solid #d1d1d1
}

.tiles-view-pf .tile.active .pficon,
.tiles-view-pf .tile.active:hover .pficon,
.tiles-view-pf .tile.active:focus .pficon {
  color: #ffffff;
}

.tiles-view-pf .tile.disabled, .tile.disabled:hover, .tile.disabled:focus {
  border: 1px solid #eee;
  color: #999999;
  cursor: not-allowed;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

// Tiles (hawkular personalization)

.tiles-view-pf {

  overflow: visible;

  .row {
    margin-left: 0;
    margin-right: 0;
    overflow: visible; //to avoid firefox scroll
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tile {
    height: 300px;
    margin: 10px 0;
    position: relative;
    width: 100%;

    .hk-delete {
      position: absolute;
      right: 13px;
      top: 12px;
      visibility: hidden;
    }

    &:hover .hk-delete {
      visibility: visible;
    }
  }
}

h2 + .tiles-view-pf {
  margin-top: -10px;
  padding-top: 0;
}

.tile:hover {
  cursor: pointer;
}

.hk-control-actions-bar + .tiles-view-pf {
  margin-top: -10px;
  padding-top: 0;
}

.hk-tile-alert {
  margin-bottom: 5px;
  min-height: 17px;
}

.hk-tile-title {
  border-bottom: 1px solid @table-border-color;
  font-size: ceil(@font-size-base + 2);
  font-weight: 600;
  height: 60px;
  margin-bottom: @grid-gutter-width/2;
  //   overflow: hidden;
  padding-bottom: @grid-gutter-width/2;
  word-wrap: break-word;

  .dropdown-toggle:not(:hover) {
    color: @gray-dark;
  }
}

.hk-tile-status {
  font-size: ceil(@font-size-base + 1);
  margin-bottom: @grid-gutter-width/4;
}

.hk-tile-circle-icon {
  background-color: transparent;
  border: 2px solid;
  height: 50px;
  margin: 0 auto 10px auto;
  border-radius: 25px;
  -webkit-border-radius: 25px;
  width: 50px;

  &.hk-danger {
    color: @brand-danger;
  }

  .fa {
    font-size: ceil(@font-size-base * 2);
    line-height: 46px;
    margin-right: 0;
  }
}

.hk-tile-info {
  font-size: ceil(@font-size-base + 1);

  a:not(:hover) {
    color: @gray;
  }
}

.chart-pf-sparkline + .hk-tile-info {
  margin-top: 5px;
}

.tile-content img {
  margin-bottom: @grid-gutter-width/5;
  width: 100%;
}

.hk-tile-aggregate-status {

  .hk-aggregate-status-count {
    font-size: ceil(@font-size-base * 1.5);
    font-weight: 600;

    [class*="pficon-"],
    .fa {
      color: @gray-light;
      margin-right: 5px;
    }
  }

  &:not(:last-child) {
    margin-bottom: 15px;
  }
}

.hk-datasource-tile {

  .tile {
    height: 330px;

    .tile-content {
      overflow: inherit;
    }

    .hk-tile-info .hk-data {
      word-wrap: break-word;
    }
  }
}

// Toastr Overrides

#toast-container > div {
  background-color: white;
  background-position: left top;
  background-size: 56px 100%;
  border-radius: 1px;
  //   border: 1px solid #bdbdbd;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: #333333;
  opacity: 0.95;
  padding: 15px 20px 15px 71px;
  position: relative;
  transition: opacity 0.5s ease;
  width: 475px;

  @media (max-width: @screen-xs-max) {
    max-width: 475px;
    width: 100%;
  }
}

#toast-container > div:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#toast-container > .toast-success {
  background-image: linear-gradient(#439a3b, #439a3b) !important;
}

#toast-container > .toast-warning {
  background-image: linear-gradient(#ec7a08, #ec7a08) !important;
}

#toast-container > .toast-error {
  background-image: linear-gradient(#cc0000, #cc0000) !important;
}

#toast-container > .toast-info {
  background-image: linear-gradient(#4d5258, #4d5258) !important;
}

#toast-container > .toast-success:after,
#toast-container > .toast-warning:after,
#toast-container > .toast-error:after,
#toast-container > .toast-info:after {
  color: rgba(255, 255, 255, 0.8);
  font-family: "PatternFlyIcons-webfont";
  font-size: 22px;
  font-weight: 400;
  left: 16px;
  position: absolute;
  text-align: center;
  top: 8px;
  width: 24px;
}

#toast-container > .toast-success:after {
  content: "\e602";
}

#toast-container > .toast-warning:after {
  content: "\e61c";
}

#toast-container > .toast-error:after {
  content: "\e61d";
}

#toast-container > .toast-info:after {
  content: "\e604";
}

.toast-close-button {
  color: @gray;
  font-size: 24px;

  &:hover {
    color: @gray-dark;
    opacity: 1;
  }
}

// Wizard

.hk-wizard {
  position: relative;

  .steps {
    margin-top: 55px;
  }

  .steps-indicator {
    position: absolute;
    top: -55px;

    &[class*="steps-"] {

      &:before {
        left: 0;
      }

      li {
        padding-left: 15px;
        padding-right: 15px;
        width: auto;
      }
    }

    &:before {
      display: none;
    }

    li:before {
      background-color: @list-group-border;
      content: '';
      height: 1px;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
    }

    li:last-child:before {
      width: 50%;
    }

    li a {
      color: @gray-light;
      font-weight: 600;
      text-transform: none;

      &:before {
        background-color: @gray-light;
        border: none;
        height: 8px;
        left: calc(~"50% - 4px");
        top: -4px;
        width: 8px;
      }
    }

    li.current a,
    li.editing a {
      color: @link-color;
      font-weight: 600;

      &:before {
        background-color: @link-color;
      }
    }

    li.done a {
      color: @gray;
      font-weight: bold;

      &:before {
        background-color: @gray;
      }
    }
  }
}

/*------------------------------------*\
    SCREENS
\*------------------------------------*/

// URLs list

.hk-urls-list {

  &.hk-urls-empty {
    margin-top: @grid-gutter-width*4;
  }

  &.hk-spinner-container {
    margin-top: @grid-gutter-width*5.5;
  }

  h1 + .fa {
    color: @gray-light;
    font-size: ceil(@font-size-base * 4);
  }

  .tiles-view-pf .tile {
    min-height: 300px;
  }
}

.hk-urls-list-content .hk-control-actions-bar {
  .bootstrap-select.btn-group,
  > div {
    float: left;
  }
}

.input-group .form-control.input-lg {
  margin-bottom: 5px;
}

.form-inline.fluid > div {
  display: table;
  width: 100%;

  .form-group {
    display: table-cell;
    width: 100%;
  }

  .form-control {
    width: inherit;
  }
}

.hk-fade-in {
  .help-block {
    color: @brand-danger;
    opacity: 1;
    transition: opacity 0.3s ease;

    &.ng-hide {
      opacity: 0;
    }
  }
}

.help-block {
  text-align: left;
  margin-bottom: 0;
  margin-top: 0;
}

.form-group .spinner {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

@media (max-width: @grid-float-breakpoint-max) {
  .input-group {
    display: block;

    .input-group-btn {
      clear: both;
      display: block;
      width: 100%;
    }

    .btn-primary {
      margin-top: @grid-gutter-width/4;
    }
  }
}

// URLs list screen

.hk-urls-list-content {

  .tiles-view-pf {
    padding-top: 0;
  }

  .hk-control-actions-bar {
    margin-bottom: 0;
  }
}

.form-horizontal.hk-add-url {
  margin-bottom: @grid-gutter-width/4*3;
  margin-top: @grid-gutter-width/4;

  .input-group-btn {
    vertical-align: top;
  }
}

.hk-urls-list-labels {
  border-bottom: 1px solid @table-border-color;
  color: @gray-light;
  margin: 0;
  padding-bottom: @grid-gutter-width/8;

  .text-left {
    padding-left: 0;

    .btn {
      border: none;
      padding: 0;
    }
  }

  .btn-link {
    color: @gray-light;

    &:hover {
      color: @link-hover-color;
      text-decoration: none;
    }
  }

  .text-right {
    padding-right: 0;
  }
}

.hk-url-item {
  margin-top: @grid-gutter-width/4*3;

  .hk-url-heading {
    margin-bottom: 1px;
    padding: @grid-gutter-width/4;

    a {
      font-size: ceil(@font-size-base * 1.333333);
    }

    span {
      color: @gray-light;
      margin-top: ceil(@font-size-base * 1.333333) - @font-size-base;
    }
  }

  .hk-summary {
    position: relative;
  }

  .hk-delete {
    right: -@grid-gutter-width/4*3;
    position: absolute;
    top: @grid-gutter-width/4*3;
    z-index: 1000;
  }

  // Animations
  &.ng-leave {
    -webkit-animation: flipOutX 1s;
    -moz-animation: flipOutX 1s;
    -ms-animation: flipOutX 1s;
    animation: flipOutX 1s;
  }
}

.hk-url-info .row-table:first-child {
  padding-top: @grid-gutter-width/2;
}

.pagination {
  margin-bottom: @grid-gutter-width/4*3;

  > li > a,
  > li > span {
    padding: 6px 15px;
  }
}

// Application servers screen

.hk-application-servers {

  h1 {
    margin-bottom: @grid-gutter-width/4;

    + .blank-slate-pf {
      margin-top: @grid-gutter-width/2;
    }
  }

  .dataTables_wrapper {
    margin-top: 15px;
  }

  .fa-arrow-down,
  a .fa-arrow-down,
  a:hover .fa-arrow-down,
  .card-pf-aggregate-status .card-pf-title .fa-arrow-down {
    color: @gray-light;
  }
}

// Application servers 100% sidebar

html,
body {
  height: 100%;
}

.hk-application-servers {
  height: calc(~"100% - 62px");
  position: relative;
}

.hk-sidebar {
  background-color: white;
  bottom: 0;
  left: 0;
  min-height: calc(~"100% - 90px");
  position: absolute;
  top: 0;
  width: 20em;

  @media (max-width: @screen-xs-max) {
    display: none;
  }

  > div {
    background-color: white;
    padding: 2em;
  }

  h4 {
    font-size: ceil(@font-size-base + 1);
    font-style: italic;
  }

  .pficon-close {
    font-size: ceil(@font-size-base - 2);
  }

  .hk-filter-v-block {
    padding: 1.5em 0;

    &:first-child {
      padding-top: 0;
    }

    &:last-child {
      padding-bottom: 0;
    }

    h4 {
      margin: 0;
    }

    + .hk-filter-v-block {
      border-top: 1px solid @table-border-color;
    }

    .radio,
    .checkbox {
      margin-left: 1.5em;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .hk-label-heading {
      font-weight: bold;

      .fa {
        font-size: @font-size-base;
      }
    }

    nav {
      margin-left: 1.5em;
      margin-top: 1em;

      a.selected {
        color: @link-hover-color;
        font-weight: bold;
      }
    }
  }

  .pull-right + .hk-filter-v-block {
    padding-top: 0;
  }
}

.hk-filters-selected {

  .hk-filter-selected {

     + .hk-filter-selected {
      margin-top: 5px;
    }

    .btn {
      margin-left: 5px;
    }
  }

  .hk-dropdown-footer {
    background-color: #f5f5f5;
    margin: 10px -14px -10px;
    padding: 10px 15px;
  }
}

.hk-content-sidebar {
  @media (min-width: @screen-sm-min) {
    margin-left: 20em;
    width: calc(~"100% - 20em");
  }
}

// Application server screen

.btn-link.hk-trigger {
  color: #333333;
  margin-left: -6px;

  &:hover {
    color: @link-hover-color;
  }
}

h3 .btn-link {
  font-weight: bold;
  margin-bottom: -7px;
  margin-top: -7px;

  span {
    font-weight: normal;
  }
}

section {
  margin-bottom: @grid-gutter-width/4*3;

  &:last-child {
    margin-bottom: 0;
  }

  h2 {
    margin-top: 0;
  }
}

.hk-info-top {
  position: relative;
  margin-bottom: 15px;

  h3 {
    margin-bottom: 0;
  }

  .hk-settings { // to be removed
    margin-top: @grid-gutter-width/4;

    a + a {
      margin-left: @grid-gutter-width/2;
    }
  }

  .btn-link {
    margin-top: -7px;
    margin-right: -11px;
  }

  .pull-left:first-child {
    margin-right: @grid-gutter-width/2;
  }

  + .dataTables_wrapper {
    margin-top: 0;
  }
}

// Datasources screen

.hk-application-datasources .tiles-view-pf .row {
  overflow: hidden; // to avoid scroll in Firefox
}

.hk-alerts {
  .input-group-btn {
    width: auto;
  }

  .bootstrap-select > .btn {
    width: 135%;
  }

  .form-horizontal .inline-row .duration {
    margin-right: 35px;
  }
}

#hk-datasources .row-cards-pf {
  margin-top: 30px;
  padding-top: 0px;
}

// Application overview screen

.hk-dashboard-block {

  padding-top: @grid-gutter-width/2;
  //   height: 120px;

  &:nth-child(1),
  &:nth-child(2) {
    padding-top: 0;

    h3 {
      border-top: none;
      padding-top: 0;
    }
  }

  h3 {
    border-top: 1px solid @table-border-color;
    margin: 0;
    padding-top: @grid-gutter-width/2;
  }

  .card-pf-utilization-details {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hk-data-info {
    display: table;
    margin-bottom: @grid-gutter-width/5;
    width: 100%;

    > div {
      display: table-cell;
      float: none;
    }
  }

  .hk-data {
    font-size: ceil(@font-size-base * 3);
    line-height: 1;
    padding-right: @grid-gutter-width/4;
    text-align: right;
    vertical-align: bottom;
    width: 25%;
  }

  .hk-info {
    height: 60px; // might change in responsive
    text-align: center;
    vertical-align: bottom;

    display: flex; // supported on new browsers
    align-items: center;
    justify-content: center;
  }

  .hk-block-title {
    margin-left: 35%;
  }

  p.card-pf-aggregate-status-notifications {
    margin-bottom: 0;
  }
}

.hk-label-editor-dropdown.dropdown-menu {
  left: -40px;
  margin-top: 10px;
  padding: 15px;
  width: 332px;

  .label-buttons {
    margin-right: 8px;
    margin-top: 10px;
  }
}

.server-label {
  display: inline-block;
  padding-right: 5px;
  cursor: pointer;
}

.remove-label {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  margin-left: 5px;
  margin-right: 0;
  vertical-align: middle;

  &:hover {
    color: white;
  }
}

// Application URL screen

.hk-application-url .dl-horizontal {
  dt {
    @media (min-width: @screen-sm-min) {
      width: 80px;
    }
  }

  dd {
    @media (min-width: @screen-sm-min) {
      margin-left: 100px;
    }
  }
}

// Access portal screens

.navbar-pf .navbar-utility li.dropdown > .dropdown-toggle .pficon-user {
  position: static;
}

@media (min-width: 768px) {
  .navbar-pf .navbar-utility li.dropdown:first-child > .dropdown-toggle {
    padding-left: 15px;
  }
}

// Agent installer screen

.hk-agent-installer {
  .code-snippet {
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 40px;
  }

  .download-agent-icon {
    font-size: 48px;
  }

  .download-header {
    margin: 0 0 20px 0;
  }

  .download-instructions {
    margin: 0 60px 20px 60px;
  }

  .download-button-container {
    margin-bottom: 20px;
  }

  .highlight pre {
    padding: 9px 14px;
    margin-bottom: 14px;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 4px;
  }

  .btn-clipboard {
    position: absolute;
    cursor: pointer;
    top: 0;
    right: 0;
    z-index: 10;
    display: block;
    padding: 5px 8px;
    font-size: 12px;
    color: #767676;
    background-color: #fff;
    border: 1px solid #e1e1e8;
    border-radius: 0 4px 0 4px;
  }

  .clipboard {
    position: relative;
    display: none;
  }

  fieldset {
    margin-bottom: 30px;
  }

  @media (min-width: 768px) {
    .clipboard {
      display: block;
    }
  }
}

// Tokens screen

.hk-tokens .row-cards-pf {
  margin-top: @grid-gutter-width/2;
}
